﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000167 RID: 359
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuyNpcStuffScRsp : IMessage<BuyNpcStuffScRsp>, IMessage, IEquatable<BuyNpcStuffScRsp>, IDeepCloneable<BuyNpcStuffScRsp>, IBufferMessage
	{
		// Token: 0x170004CD RID: 1229
		// (get) Token: 0x06001040 RID: 4160 RVA: 0x0002FBF4 File Offset: 0x0002DDF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuyNpcStuffScRsp> Parser
		{
			get
			{
				return BuyNpcStuffScRsp._parser;
			}
		}

		// Token: 0x170004CE RID: 1230
		// (get) Token: 0x06001041 RID: 4161 RVA: 0x0002FBFB File Offset: 0x0002DDFB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuyNpcStuffScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004CF RID: 1231
		// (get) Token: 0x06001042 RID: 4162 RVA: 0x0002FC0D File Offset: 0x0002DE0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuyNpcStuffScRsp.Descriptor;
			}
		}

		// Token: 0x06001043 RID: 4163 RVA: 0x0002FC14 File Offset: 0x0002DE14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyNpcStuffScRsp()
		{
		}

		// Token: 0x06001044 RID: 4164 RVA: 0x0002FC1C File Offset: 0x0002DE1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyNpcStuffScRsp(BuyNpcStuffScRsp other) : this()
		{
			this.bIIHOBMMFDP_ = other.bIIHOBMMFDP_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001045 RID: 4165 RVA: 0x0002FC4D File Offset: 0x0002DE4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyNpcStuffScRsp Clone()
		{
			return new BuyNpcStuffScRsp(this);
		}

		// Token: 0x170004D0 RID: 1232
		// (get) Token: 0x06001046 RID: 4166 RVA: 0x0002FC55 File Offset: 0x0002DE55
		// (set) Token: 0x06001047 RID: 4167 RVA: 0x0002FC5D File Offset: 0x0002DE5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BIIHOBMMFDP
		{
			get
			{
				return this.bIIHOBMMFDP_;
			}
			set
			{
				this.bIIHOBMMFDP_ = value;
			}
		}

		// Token: 0x170004D1 RID: 1233
		// (get) Token: 0x06001048 RID: 4168 RVA: 0x0002FC66 File Offset: 0x0002DE66
		// (set) Token: 0x06001049 RID: 4169 RVA: 0x0002FC6E File Offset: 0x0002DE6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600104A RID: 4170 RVA: 0x0002FC77 File Offset: 0x0002DE77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuyNpcStuffScRsp);
		}

		// Token: 0x0600104B RID: 4171 RVA: 0x0002FC85 File Offset: 0x0002DE85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuyNpcStuffScRsp other)
		{
			return other != null && (other == this || (this.BIIHOBMMFDP == other.BIIHOBMMFDP && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600104C RID: 4172 RVA: 0x0002FCC4 File Offset: 0x0002DEC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BIIHOBMMFDP != 0U)
			{
				num ^= this.BIIHOBMMFDP.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600104D RID: 4173 RVA: 0x0002FD1C File Offset: 0x0002DF1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600104E RID: 4174 RVA: 0x0002FD24 File Offset: 0x0002DF24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600104F RID: 4175 RVA: 0x0002FD30 File Offset: 0x0002DF30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.BIIHOBMMFDP != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.BIIHOBMMFDP);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001050 RID: 4176 RVA: 0x0002FD8C File Offset: 0x0002DF8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BIIHOBMMFDP != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BIIHOBMMFDP);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001051 RID: 4177 RVA: 0x0002FDE4 File Offset: 0x0002DFE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuyNpcStuffScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BIIHOBMMFDP != 0U)
			{
				this.BIIHOBMMFDP = other.BIIHOBMMFDP;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001052 RID: 4178 RVA: 0x0002FE34 File Offset: 0x0002E034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001053 RID: 4179 RVA: 0x0002FE40 File Offset: 0x0002E040
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BIIHOBMMFDP = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040006E3 RID: 1763
		private static readonly MessageParser<BuyNpcStuffScRsp> _parser = new MessageParser<BuyNpcStuffScRsp>(() => new BuyNpcStuffScRsp());

		// Token: 0x040006E4 RID: 1764
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006E5 RID: 1765
		public const int BIIHOBMMFDPFieldNumber = 11;

		// Token: 0x040006E6 RID: 1766
		private uint bIIHOBMMFDP_;

		// Token: 0x040006E7 RID: 1767
		public const int RetcodeFieldNumber = 10;

		// Token: 0x040006E8 RID: 1768
		private uint retcode_;
	}
}
